package cn.im.view;

import cn.im.domain.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserVo extends BaseForm<User> {

	private String id;
	private String userName;
	private String password;
	private Integer age ;


	/**
	 * 构造实体对象
	 * @return
	 */
	@Override
	public User buildEntity() {
		User user = new User();
		BeanUtils.copyProperties(this,user);
		return user;
	}
}
